package com.felix.load;

import com.google.common.collect.Lists;

import java.util.List;
import java.util.stream.Collectors;

/**
 * Main
 *
 * @author xuejinhua
 * @date 2018/10/19 17:29
 */
public class Main {
    static {
        x = 10;
    }

    public static int x = 1;

    public static void main(String[] args) {
        List<Integer> list = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9);
        List<Integer> subList = list.stream().filter(e -> e % 2 == 1).collect(Collectors.toList());
        List<Integer> subList1 = list.subList(0, 5);

    }

}
